//一、api这里发送请求
//1.先引入 get 和 post请求

import { get,post } from "./http";

//1.注册接口
export const reqregister = (params)=>post('/api/register',params)
//2.登录接口
export const reqlogin = (params)=>post('/api/login',params)

//3.新人专享列表
export const reqgetnew = (params)=>get('/api/getnew',params)

//4.商品分类接口
export const reqgetcate = (params)=>get('/api/getcate')

//5.获取商品二级分类
export const reqgetcatesecond = (params)=>get('/api/getgoods',params)

//5.轮播图接口
export const reqgetbanner = (params)=>get('/api/getbanner')

//6.首页商品信息接口
export const reqgetindexgoods = (params)=>get('/api/getindexgoods')

//7.限时秒杀
export const reqgetseckill = (params)=>get('/api/getseckill')

//8.万人团接口
export const reqgetgroupon = (params)=>get('/api/getgroupon')

//9.商品详情接口
export const reqgetgoodsinfo = (params)=>get('/api/getgoodsinfo',params)

//11.优惠券接口
export const reqgetcoupon = (params)=>get('/api/getcoupon')


//10.购物车接口
//1.购物车列表
export const reqgetcartlist = (params)=>get('/api/cartlist',params)
//2.购物车添加
export const reqgetcartadd = (params)=>post('/api/cartadd',params)
//3.购物车修改
export const reqgetcartdelete = (params)=>post('/api/cartdelete',params)
//4.购物车删除
export const reqgetcartedit = (params)=>post('/api/cartedit',params)


//登录管理
//登录接口